home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / docs-source / features / strip.hsc < prev    next >
Encoding:
Text File  |  1997-10-10  |  2.7 KB  |  81 lines

  1. <WEBPAGE chapter="hsc - " title="Strip Specific Elements"
  2.          PREV="spcattr.html"
  3.          NEXT="syntax.html"
  4.          QTEXT=("She looks like the Sunday Comics<BR>"
  5.                +"She thinks she's Brenda Star<BR>"
  6.                +"Her nose job is real atomic<BR>"
  7.                +"All she needs is an old knife scar")
  8.          QAUTHOR='Blondie, "Rip Her to Shreds"'>
  9.  
  10. <H2>SGML Comments</H2>
  11.  
  12. <P>Usually there should be no need to use sgml-comments, so why not
  13. remove them at all? You can perform this by enabling the switch
  14. <op_stripcomment> when invoking <hsc>.</P>
  15.  
  16. <P>Because of the numerous problems sgml-comments cause, you better use
  17. <A HREF="spctags.html#comments">hsc-comments</A> anyway (see there also
  18. for a discussion of these problems).</P>
  19.  
  20. <H2>Specific Tags</H2>
  21.  
  22. <P>..can be passed to the option <op_striptags>, separated by a
  23. <vbar>. For example, to remove all physical styles, use
  24. <KBD>STRIPTAG="B|I|U|TT"</KBD> when invoking <hsc>.</P>
  25.  
  26. <P>You can't strip tags, which have the <A HREF=":macro/flag.html">tag
  27. modifier</A> <CODE>/SPECIAL</CODE> set. But this only concerns the
  28. <TG>!</TG>-tag (use the above switch instead) and some of <hsc>'s
  29. internal tags, which you should not strip anyway.</P>
  30.  
  31. <H2>Tags With External References</H2>
  32.  
  33. <P>These can be removed if you want to create a No-Net-version of your
  34. document. Use the switch <op_stripexternal> for this task. Tags which
  35. are affected by this must have an URI-type attribute, which has the <A
  36. HREF=":macro/attrib.html#modifier">attribute modifier</A>
  37. <CODE>/STRIPEXT</CODE> set within <hsc.prefs>.</P>
  38.  
  39. <P>Currently, this affects only the tags <TG>A</TG>, <TG>IMG</TG> and
  40. <TG>LINK</TG>. This can be useful if you want to create a
  41. <QQ>no-net-version</qq> of your documents.</P>
  42.  
  43. <H2>Unneeded Linefeeds And White Spaces</H2>
  44.  
  45. <P>These can be removed, if you heavy use them to structure your
  46. source, but don't want to waste bandwidth for them. You only need to
  47. enable the switch <op_compact>.</P>
  48.  
  49. <P>If now someone performs a "View Source" on your html object,it will
  50. be less readable for him, but browsers won't care and display it the
  51. same way. For example,</P>
  52.  
  53. <$source PRE>
  54. This  is  a <B>complete</B>
  55.  
  56.     waste   of   space...
  57. </$source>
  58.  
  59. will turn into
  60.  
  61. <$source PRE>
  62. This is a <B>complete</B>
  63. waste of space...
  64. </$source>
  65.  
  66. In particular, <hsc> does:
  67.  
  68. <UL>
  69. <LI>replace tabs by a single blank
  70. <LI>replace multiple blanks by a single one
  71. <LI>replace multiple linefeeds by a single one
  72. <LI>remove blanks preceeding a linefeed
  73. <LI>remove blanks at beginning of line
  74. </UL>
  75.  
  76. <P>Linefeeds and white spaces inside a tag call are also affected by
  77. this option. The tag <TG>PRE</TG> temporarily suppresses this option,
  78. until a <TG>/PRE</TG> occures.</P>
  79.  
  80. </WEBPAGE>
  81.